package head.first.model.state.demo2;

/**
 * Created by yiyongyao on 2018/2/27.
 *
 * 糖果机状态---售罄
 */
public class SoldOutState implements State {

    GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter(GumballMachine gumballMachine) {
        System.out.println("糖果已售罄!");
    }

    @Override
    public void ejectQuarter(GumballMachine gumballMachine) {
        System.out.println("糖果已售罄!");

    }

    @Override
    public void turnCrank(GumballMachine gumballMachine) {
        System.out.println("糖果已售罄!");

    }

    @Override
    public void dispence(GumballMachine gumballMachine) {
        System.out.println("糖果已售罄!");

    }
}
